home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 30
/
PCMania CD30.iso
/
pcmania
/
graf30
/
dtiff.doc
< prev
next >
Wrap
Text File
|
1988-11-28
|
6KB
|
137 lines
DTIFF - Display Tag Image File Format, Version 2.0 (c) 1988 Late Night Software
11/28/88
DTIFF is a utility that displays TIFF file images on systems that have a CGA,
EGA, VGA, MCGA, Hercules, IBM 8514/A, or AT&T display adapter cards.
The command to use is:
dtiff <tiff file> [ options ]
Where:
<tiff file> is the DOS name of the Tag Image File Format to display.
[options] are separated by a space and begin with a '/'. They are:
/rn : Rotate the the picture 'n' degrees, n=0,90,180 or 270
/a : Display the picture 'as is'. If the picture is larger than
your display, you'll will see only a portion of it.
/dADP : Use the adapter 'ADP', ADP=CGA,MCGA,EGA,EGA64,EGAMONO,VGA,
IBM8514,HERC, or ATT. If not specified, DTIFF will try to
detect the type of adapter that is installed in your system.
DTIFF can read any TIFF file up to Rev 4.2. DTIFF reads only single plane,
black & white images. Color and gray scale are not supported.
The sample TIF files included with DTIFF are HARPO.TIF, and CARTOON.TIF
HARPO.TIF is a file from the DEST TIFF Library Validation Images disk that
comes with the DEST TACS system. It is an example of a scanned B&W photograph.
CARTOON.TIF was scanned on a DEST PC SCAN PLUS. It is an example of a scanned
drawing.
CARTOON.TIF was taken from the book, "How To Have Sex In Public",
(c) 1983 Marcel Feigel, Ten Speed Press, Berkeley, California. It is a happy
little book for people who like that sort of thing - cartoon books.
The size of the picture or drawing and the resolution of the scanner are
factors in the size of the image. If the image will fit in the resolution of
your display, then no other processing is needed. However, most images are
larger that a typical PC display. If the image is larger than your display,
TIFF tries to squeeze it by skiping rows and columns until it fits. This
process will tend to produce a grainy image. If you wish to bypass the
squeezing process, use the "/a" option. You will see the image in its full
resolution, but not all of it will fit on the screen.
DTIFF ignores the ORIENTATION TAG, so it doesn't know if the image was scanned
in portrait or landscape. You can use the "/rn" to rotate the image 90, 180 or
270 degrees in the counterclockwise direction.
DTIFF will try to detect which display hardware is present in your system.
However, it will not automatically detect the AT&T or IBM8514/A adapters. If
you have one of these, use the "/dADP" option to tell DTIFF that you have one
of these display systems.
Examples:
dtiff harpo.tif /dATT
Displays "harpo.tif" on an AT&T system.
dtiff harpo.tif /a
Displays "harpo.tif" with out fiting the image to the screen. This option has
no effect if the image will actually fit on your display without compression.
dtiff b:cartoon /r90
Displays "cartoon.tif" from drive "b:" rotated 90 degrees conter clockwise.
Note that the ".tif" extension is optional.
The options can be used in any combination.
dtiff harpo /dATT400 /r90 /a
dtiff cartoon.tif /r270 /a
The IBM 8514/A driver has not been tested because we can't afford one. It is
included anyway so you can try it if you're lucky enough to have one.
The IBM VGA adapter and monitor are capable of resolution greater that the
640x480 set up by the BIOS mode 17. There is a special driver "VGAX" that will
let you take advantage of the higher resolutions, however, you must use the
"/dVGAX" option to activate this driver. If you have a VGA adapter and monitor
and use the "/dVGAX" option, the TIFF file will be displayed in a screen
resolution of 720x512 pixels. You can also specify the horizontal and vertical
resolution to be used with this driver. The "/h<h-res>" and "/v<v-res>" options
are used for this purpose.
For example, to use a 720x512 resolution on a VGA to display the "cartoon.tif"
file:
dtiff cartoon /dVGAX
To display the file with 736x530 resolution:
dtiff cartoon /dVGAX /h736 /v530
The horizontal resolution must be a multiple of 16 although the vertical
resolution can be any number.
This article from BYTE MAGAZINE Vol 13, Num 11, "IBM Special Edition", "VGA
VIDEO MODES", p. 187, by Richard Wilton was used to implement the VGAX driver.
In this article, Mr. Wilton mentions that the maximum resolution for an IBM VGA
monitor is 720x512, so use this feature with care. We have been able to get a a
fairly good display at 768x560 but the image deteriorates at resulotions higher
than this. Mr. Wilton also states that the VGA adapter is capable of driving a
multiscanning monitor at 800x600. We'd like to thank Mr. Wilton and Byte
magazine for this information.
Although we have made resonable attempts to test and verify this program, we do
not guarantee its correctness on any specific hardware confuration.
Take extra care when using this and any other software obtained from a public
system. Worm and virus programs are becomming more common. You should try to
isolate the program buy running it from a floppy disk and booting DOS from the A:
drive or running it on a floppy disk machine that has no hard disk until you
are satisfied that it is not harmful. We have used 2 programs "CHK4BOMB" and
"BOMBSQAD" to check software.
If you suspect that this program has been tampered with or want to verify that
it is unaltered, you can send it to us on a floppy disk for verification.
Include ALL the files that you've downloaded and please tell us where you got
them from in case they have been tampered with. We will also send you some
other programs that we've uploaded and you can be sure of their validity.
If you have any questions or comments about DTIFF , please send them to:
Late Night Software
PO BOX 81471
Chicago, IL 60681-0471
If you wish to verify or receive other programs, please send a floppy
disk along with your comments.